package sctu.edu.java.year2016.team04.guoyicheng.day20160525.chapter7_1;

/**
 * Created by yicheng on 2016/5/26.
 */
    public class One {
        public static void main(String[] args){

            One2 guo=new One2();

            guo.setName("yicheng");

            guo.getName();
        }
    }








    class One2{
        private String name;

        public void setName(String name){

            this.name=name;

        }

        public void getName(){
            System.out.println(""+this.name);
        }

    }

